package com.cml.rule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import com.netflix.loadbalancer.RoundRobinRule;
import com.netflix.loadbalancer.WeightedResponseTimeRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author cml
 * @create 2021/4/18 22:55
 */
@Configuration
public class MySelfRule {
    @Bean
    public IRule getRule(){
        return new RandomRule();
    }
}
